package com.ruoyi.auction.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.auction.mapper.ShAuctionMapper;
import com.ruoyi.auction.domain.ShAuction;
import com.ruoyi.auction.service.IShAuctionService;
import com.ruoyi.common.core.text.Convert;

/**
 * 拍卖信息管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-12-29
 */
@Service
public class ShAuctionServiceImpl implements IShAuctionService 
{
    @Autowired
    private ShAuctionMapper shAuctionMapper;

    /**
     * 查询拍卖信息管理
     * 
     * @param aid 拍卖信息管理ID
     * @return 拍卖信息管理
     */
    @Override
    public ShAuction selectShAuctionById(Long aid)
    {
        return shAuctionMapper.selectShAuctionById(aid);
    }

    /**
     * 查询拍卖信息管理列表
     * 
     * @param shAuction 拍卖信息管理
     * @return 拍卖信息管理
     */
    @Override
    public List<ShAuction> selectShAuctionList(ShAuction shAuction)
    {
        return shAuctionMapper.selectShAuctionList(shAuction);
    }

    /**
     * 新增拍卖信息管理
     * 
     * @param shAuction 拍卖信息管理
     * @return 结果
     */
    @Override
    public int insertShAuction(ShAuction shAuction)
    {
        return shAuctionMapper.insertShAuction(shAuction);
    }

    /**
     * 修改拍卖信息管理
     * 
     * @param shAuction 拍卖信息管理
     * @return 结果
     */
    @Override
    public int updateShAuction(ShAuction shAuction)
    {
        return shAuctionMapper.updateShAuction(shAuction);
    }

    /**
     * 删除拍卖信息管理对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteShAuctionByIds(String ids)
    {
        return shAuctionMapper.deleteShAuctionByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除拍卖信息管理信息
     * 
     * @param aid 拍卖信息管理ID
     * @return 结果
     */
    @Override
    public int deleteShAuctionById(Long aid)
    {
        return shAuctionMapper.deleteShAuctionById(aid);
    }
}
